home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / debugc.zip / BUG.H < prev    next >
Text File  |  1985-02-20  |  640b  |  20 lines

  1. /*  Dr. Bob's Utilities  */
  2.  
  3. #define COMMA ,
  4. #define HERE(name) DB_PRINT("function: %-14s file: %-14s line: %-4d \n"  \
  5.         COMMA name COMMA __FILE__ COMMA __LINE__)
  6. #ifndef debug
  7. #    define DEBUG(msg) /* nothing */
  8. #    define DB_PRINT(stuff) /* nothing */
  9. #    define N_DEBUG(stuff) stuff
  10. #    define NDB_PRINT(msg) fprintf(stderr,msg)
  11. #else
  12. #    define DB_PRINT(msg) fprintf(stderr,msg)
  13. #    define DEBUG(stuff) stuff
  14. #    define N_DEBUG(msg) /* nothing */
  15. #    define NDB_PRINT(stuff) /* nothing */
  16. #endif
  17. 
  18.     DEBUG(
  19.        printf("\n\nIf debug is defined only two calls to ");
  20.        printf("sortfile() will be